//
//  TimeInterval.swift
//  Box
//
//  Created by mn on 2025/4/4.
//
import Foundation
extension TimeInterval{
    func YMDHMS() -> String {
        let date = Date(timeIntervalSince1970: self)
        let formatter = DateFormatter()
        formatter.dateFormat = "yyyy-MM-dd HH:mm:ss"
        formatter.timeZone = TimeZone.current
        return formatter.string(from: date)
    }
}
